<template>
  <div id="appContainer">
    <RouterView />
  </div>
</template>
<script setup lang="ts">
import { RouterView } from "vue-router";
import autofit from "autofit.js";
import { onMounted } from "vue";

onMounted(() => {
  autofit.init({
    dh: 1080,
    dw: 1920,
    el: "#appContainer",
    resize: true,
    // 使用 translate 代替 scale，减少对交互的影响
    ignore: ['.amap-container'] // 忽略对地图容器的缩放
  });
});
// autofit.init({
//   el: "#appContainer",
//   dw: 1920,
//   dh: 1080,
// });
</script>



<style scoped></style>
